package com.zhuimeng.controller;

import com.zhuimeng.pojo.Resume;
import com.zhuimeng.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController
{
    @Autowired
    ResumeService service;

    @RequestMapping("test")
    @ResponseBody
    public Page<Resume> test(Integer pageNum,Integer pageSize){
        Page<Resume> select = service.findAll(pageNum, pageSize);
        return select;
    }
}
